<?php
/**
 * 
 * ClientEngage: ClientEngage Visitor Voice (http://www.clientengage.com)
 * Copyright 2012, ClientEngage (http://www.clientengage.com)
 *
 * You must have purchased a valid license from CodeCanyon in order to have 
 * the permission to use this file.
 * 
 * You may only use this file according to the respective licensing terms 
 * you agreed to when purchasing this item on CodeCanyon.
 * 
 * 
 * 
 *
 * @author          ClientEngage <contact@clientengage.com>
 * @copyright       Copyright 2013, ClientEngage (http://www.clientengage.com)
 * @link            http://www.clientengage.com ClientEngage
 * @since           ClientEngage - Visitor Voice v 1.0
 * 
 */
?>
<div class="fields">
    <?php echo $this->Form->create('Field', array('class' => 'form-horizontal', 'novalidate', 'inputDefaults' => array('class' => 'span12'))); ?>
    <fieldset>
        <legend><?php echo __('Edit Field') . ' <small>[' . FieldType::getDisplayName($field['Field']['type']) . ']</small>'; ?></legend>
        <div class="well">
            <?php
            echo $this->element('fields/editor', array('field' => $field, 'isAddField' => false));
            ?>
        </div>
        <div class="well">
            <?php echo $this->Form->button('<i class="ico-disk"></i> ' . __('Save Changes'), array('class' => 'btn btn-primary span12 btn_loading', 'div' => false, 'escape' => false, 'data-loading-text' => __('Processing...'))); ?>
        </div>
    </fieldset>
    <?php echo $this->Form->end(); ?>
</div>
